import os
import shutil

img_folder = ""
copy_folder = ""

if os.path.exists(copy_folder):
    shutil.rmtree(copy_folder)

os.mkdir(copy_folder)

count = 0
# for img in os.listdir(img_folder):
#     count += 1
#     shutil.copyfile(os.path.join(img_folder, img), os.path.join(copy_folder, img))
#     if count > 1000:
#         break

for i in range(1000):
    img = str(i)+".jpg"
    shutil.copyfile(os.path.join(img_folder, img), os.path.join(copy_folder, img))